package org.TUApp.eTour;

import android.app.Activity;
import android.content.Context;
import android.database.Cursor;
import android.os.Bundle;
import android.widget.TextView;

public class LocationInfo extends Activity {
	private TextView message1Tv;
	private TextView message2Tv;
	private TextView message3Tv;

	protected void onCreate(Bundle savedInstanceState) {
		super.onCreate(savedInstanceState);
		setContentView(R.layout.location_info);
		this.setTitle("");
	}
	
	public void initiateB(String name, String[] departments, String history, String link){
		this.setTitle(name);
		this.message1Tv = (TextView) findViewById(R.id.location_desc);
		this.message2Tv = (TextView) findViewById(R.id.location_history);
		this.message3Tv = (TextView) findViewById(R.id.location_link);
		
		for (String department:departments){
			message1Tv.append(department + "\n");
		}
		message2Tv.setText(history);
		message3Tv.setText(link);
		
	}
	public void initiateS(Cursor cousor){
		
	}
	

}
